home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / variables / set < prev    next >
Encoding:
Text File  |  1993-10-26  |  982 b   |  23 lines  |  [TEXT/$Tcl]

  1.  
  2.           set varName ?value?
  3.  
  4.  
  5.      DESCRIPTION
  6.           Returns the value of variable varName.  If value  is  speci-
  7.           fied, then set the value of varName to value, creating a new
  8.           variable if one doesn't already exist, and return its value.
  9.           If  varName  contains  an  open  parenthesis and ends with a
  10.           close parenthesis, then it refers to an array element:   the
  11.           characters before the first open parenthesis are the name of
  12.           the array, and the characters between  the  parentheses  are
  13.           the  index  within the array.  Otherwise varName refers to a
  14.           scalar variable.  If no procedure is  active,  then  varName
  15.           refers to a global variable.  If a procedure is active, then
  16.           varName refers to a parameter or local variable of the  pro-
  17.           cedure unless the global command has been invoked to declare
  18.           varName to be global.
  19.  
  20.  
  21.      KEYWORDS
  22.           read, write, variable
  23.